package com.firsteapps.mobile.android.puzzle;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import com.firsteapps.mobile.android.puzzle.game.ViewComplPuzzles;
import com.firsteapps.mobile.android.puzzle.game.ViewIncomplPuzzles;
import com.firsteapps.mobile.android.puzzle.util.Utilities;

public class PostLogin extends PostLoginBase {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.home_post_login);

		findViewById(R.id.hpl_start_continue).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Utilities.startActivityWithAnimation(PostLogin.this, SelectPuzzle.class);
			}
		});

		findViewById(R.id.hpl_create_puzzle).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Utilities.startActivityWithAnimation(PostLogin.this, CreatePuzzle.class);
			}
		});

		findViewById(R.id.hpl_share_puzzle).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Utilities.startActivityWithAnimation(PostLogin.this, SharePuzzle.class);
			}
		});

		findViewById(R.id.hpl_import_puzzle).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Utilities.startActivityWithAnimation(PostLogin.this, ImportPuzzle.class);
			}
		});

		findViewById(R.id.hpl_view_compl_puzzle).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Utilities.startActivityWithAnimation(PostLogin.this, ViewComplPuzzles.class);
			}
		});

		findViewById(R.id.hpl_view_incompl_puzzle).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Utilities.startActivityWithAnimation(PostLogin.this, ViewIncomplPuzzles.class);
			}
		});

		findViewById(R.id.hpl_shop_here).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Utilities.startActivityWithAnimation(PostLogin.this, ShopHere.class);
			}
		});

		findViewById(R.id.hpl_logout).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Utilities.confirmDialog(v, "Logout", "Are you sure you want to log out?", Home.class);
			}
		});

		findViewById(R.id.hpl_add_credits).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Utilities.startActivityWithAnimation(PostLogin.this, ShopHere.class);
			}
		});
	}
}
